﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MovieSystem.Banco;

namespace MovieSystem.Controle
{
    public class CtlSala
    {
        public Boolean Inserir(EntSala oSala)
        {

            oSala.Inserir();
            return true;

        }

        public Boolean Alterar(EntSala oSala)
        {
            oSala.Alterar();
            return true;

        }
        public Boolean Excluir(EntSala oSala)
        {

            oSala.Excluir();
            return true;

        }

        public List<EntSala> BuscaPorParametro(string parametro)
        {
            List<EntSala> lSala = new List<EntSala>();

            EntSala oSala = new EntSala();
            lSala = oSala.BuscaPorParametro(parametro);
            return lSala;
        }

        public EntSala BuscaPorId(string parametro)
        {
            EntSala oSala = new EntSala();

            oSala = oSala.BuscaPorId(parametro);
            return oSala;
        }

        public List<EntSala> BuscaTodos()
        {
            List<EntSala> lSala = new List<EntSala>();

            EntSala oSala = new EntSala();
            lSala = oSala.BuscaTodas();
            return lSala;
        }
    }
}
